package com.atguigu.tms.mock.service.impl;

import com.atguigu.tms.mock.bean.TransportPlanLineDetail;
import com.atguigu.tms.mock.mapper.TransportPlanLineDetailMapper;
import com.atguigu.tms.mock.service.TransportPlanLineDetailService;
import com.atguigu.tms.mock.service.adv.impl.AdvServiceImpl;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 运单路线明细表 服务实现类
 * </p>
 *
 * @author zhangchen
 * @since 2022-06-21
 */
@Service
public class TransportPlanLineDetailServiceImpl extends AdvServiceImpl<TransportPlanLineDetailMapper, TransportPlanLineDetail> implements TransportPlanLineDetailService {


    public void  calcTransportPlanlineDetail(){

    }

    @Override
    public TransportPlanLineDetail getNextTransportPlanLineDetail(Long orderId, Long curOrgId) {

        TransportPlanLineDetail nextPlanLineDetail = getOne(new QueryWrapper<TransportPlanLineDetail>().eq("order_id", orderId).eq("start_org_id", curOrgId));

        return nextPlanLineDetail;
    }



}
